# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
# Maintainer: Alan Lacerda <alacerda@alpinelinux.org>
pkgname=mate-media
pkgver=1.24.1
pkgrel=0
pkgdesc="Media tools for MATE"
url="https://github.com/mate-desktop/mate-media"
arch="all !s390x !mips !mips64" # Limited by mate-panel
license="GPL-2.0-or-later"
makedepends="intltool gobject-introspection-dev gtk+3.0-dev
	libcanberra-dev libunique-dev libmatemixer-dev mate-desktop-dev
	mate-panel-dev dconf-dev libxml2-dev startup-notification-dev"
subpackages="$pkgname-doc $pkgname-lang"
source="https://pub.mate-desktop.org/releases/${pkgver%.*}/mate-media-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--sysconfdir=/etc \
		--enable-static=no \
		--prefix=/usr
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="88a8f1b8ee1684c6270ee65d17cd4d031830cd968069cae38a1844b0688cdcac25fc2e09c415d8e55c5b8564c4e0421e2c111cc44de9221bf37cf0e31dc572d3  mate-media-1.24.1.tar.xz"
